home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / falcon / nt_dsp1.lzh / NT_DSP1.MSA / CODEC / LOGLIN.HLP < prev    next >
Encoding:
Text File  |  1989-01-24  |  1.5 KB  |  41 lines

  1.          Name: LOGLIN.ASM
  2.          Type: Assembler Macros
  3.       Version: 1.0
  4.  Date Entered:  20-Apr-87
  5.   Last Change:  20-Apr-87
  6.  
  7.   Description: Companded CODEC to Linear PCM Data Conversion Macros
  8.  
  9.  These macros convert 8 bit companded data received from CODEC A/D
  10.  converters used in telecommunications applications to 13 bit, linear
  11.  fractional data.  The internal mu/a-law lookup tables in the DSP56001
  12.  X data ROM are used to minimize execution time.  Three companded
  13.  formats are supported for the Motorola MC14400 CODEC series and
  14.  similar devices.
  15.  
  16.  Macro Name   Description
  17.  ----------   -----------
  18.  smlin        sign magnitude to linear conversion with mu-law
  19.               companding.
  20.  
  21.  mulin        mu-law companded to linear conversion.
  22.  
  23.  allin        a-law companded to linear conversion with CCITT
  24.               (G7.12) format.
  25.  
  26.  Input data is in the 8 most significant bits of a1.  The remaining
  27.  bits of a are ignored.
  28.  
  29.   -------------------------------------------------------
  30.  | Sign |    Chord Number    |       Step Number         |
  31.  | Bit  |                    |                           |
  32.  |__23__|__22_____21_____20__|__19_____18_____17_____16__|
  33.  
  34.  Output data is in the 56 bit accumulator a.  The linear fraction is
  35.  in the 13 most significant bits of a1 and the 11 least significant
  36.  bits are zero.
  37.  
  38.  Each macro executes in 12 instruction cycles and requires 12 words of
  39.  program memory.  Each macro uses the internal DSP56001 mu/a-law lookup
  40.  table.
  41.